package com.gxa.ssm340.entity.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "积分基本信息")
@Data
public class Points implements Serializable {
    @ApiModelProperty(name = "pointsId",value = "积分编号",notes = "主键",dataType = "Integer",required = false)
    private Integer pointsId;
    @ApiModelProperty(name = "points",value = "积分数值",notes = "积分数值",dataType = "Integer",required = true)
    private Integer points;
    @ApiModelProperty(name = "brandName",value = "品牌名",dataType = "String",required = true)
    private String brandName;
    @ApiModelProperty(name = "num",value = "数量",dataType = "integer",required = true)
    private Integer num;
    @ApiModelProperty(name = "img",value = "图片",notes = "图片",dataType = "String",required = true)
    private String img;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @ApiModelProperty(name = "entryTime",value = "录入时间",notes = "录入时间",dataType = "Date",required = false)
    private Date entryTime;
    @ApiModelProperty(name = "userId",value = "拥有者编号（用户）",notes = "拥有者编号（用户）",dataType = "Integer",required = true)
    private Integer userId;

    private String phone;
}
